package com.itlxd.exception;

import com.itlxd.global.SysConstants;

/** 自定义参数异常
 * @author: lixiaodong
 **/

public class SetmealException extends RuntimeException{

    private Integer code;

    public SetmealException(Integer code) {
        this.code = code;
    }

    public SetmealException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public SetmealException(String message) {
        super(message);
        this.code = SysConstants.SETMEAL_ON_SALE;
    }

}
